projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
959db9f
)
otutil: Correctly add ref to bytes when creating GVariant
author
Colin Walters
<walters@verbum.org>
Tue, 29 Apr 2014 12:53:28 +0000
(08:53 -0400)
committer
Colin Walters
<walters@verbum.org>
Tue, 29 Apr 2014 12:53:28 +0000
(08:53 -0400)
This one went undiscovered for a while because it turned out we
weren't using it...
src/libotutil/ot-variant-utils.c
patch
|
blob
|
history
diff --git
a/src/libotutil/ot-variant-utils.c
b/src/libotutil/ot-variant-utils.c
index 0f8e4bee277571b71893d270157fdcd0d13ff3f9..24e5b5525d323b3ea4677ba6e5318b0521ab2ded 100644
(file)
--- a/
src/libotutil/ot-variant-utils.c
+++ b/
src/libotutil/ot-variant-utils.c
@@
-280,6
+280,7
@@
ot_variant_new_from_bytes (const GVariantType *type,
#else
gsize size;
gconstpointer data = g_bytes_get_data (bytes, &size);
+ g_bytes_ref (bytes);
return g_variant_new_from_data (type, data, size, trusted,
(GDestroyNotify)g_bytes_unref, bytes);
#endif